const Mock = require('mockjs')

const Random = Mock.Random



module.exports = () => {
    let data = { news: [], pro: [] }

    for (let i = 0; i < 20; i++) {
        data.news.push({
            id: i,
            name: `fenglong${i}`,
            content: Random.cparagraph(10)
        })
    }
    for (let i = 0; i < 20; i++) {
        data.pro.push({
            id: i,
            content: `烤羊${Random.cparagraph(1)}`,
            desc: `约${Math.ceil(Math.random() * 1000)}个结果`
        })
    }



    return data;
}




